package com.xxx.blog.mapper;
import com.xxx.base.vo.GdVo;
import com.xxx.blog.domain.Article;
import com.xxx.blog.query.ArticleQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleMapper {
    List<Article> findAll();
    Article findOne(Long id);
    List<Article> queryPage(ArticleQuery articleQuery);
    void addArticle(Article article);
    void updateArticle(Article article);
    void deleteArticle(Long id);
    void batchArticle (Long[] ids);

    List<GdVo> getGd();

    List<Article> getRa(Article one);
}
